<?php
/*************************************************************************************
 *
 *	FileName: header_php.php
 *	Desc    : View all the gifts
 *	Author  : Seal
 *	Date    : 2010-9-25
 *
 *************************************************************************************/

	require_once ( LIB_DIR.'classes/Pager.php' );
	$p=intval($_GET[UP_RESULT_PAGE]);
	$p = $p == 0 ? 1 : $p;
	
	$giftDAO = GetGiftCouponDAO();
	
	$totalNum =0;
	$gifts=$giftDAO->GetGiftList( $totalNum, $p ,GIFT_PER_PAGE );
	$hotCoupons = $giftDAO->GetHotCoupon(7);
	$giftHistory = $giftDAO->GetGiftHistory(10);

	$page = new Pager( edp_href_link(PAGENAME_GIFT_SUMMARY), $totalNum, GIFT_PER_PAGE, $p, UP_RESULT_PAGE );
	return;
?>